#!/bin/bash

# 1. 修改python软件源
# 2. 安装常用python库

echo "----------------python vim相关-------------------------"
# if [ -z `which pip3` ]; then  
    sudo apt install -y python3-pip python3.10-venv tshark
    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
    sudo ln -s /usr/bin/python3 /usr/bin/python
    pip3 install neovim-remote pynvim

    pip3 install ipython matplotlib numpy pandas tqdm sympy fire
    pip3 install jupyter jupyterlab
    pip3 install cmake-format yapf
    pip3 install pylatexenc
    pip3 install pyshark
    pip3 install you-get
    pip3 install selenium webdriver-manager

# fi

mkdir -p ~/.ipython/profile_default/startup

echo "
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sympy import *
import math
" > ~/.ipython/profile_default/startup/rc.py

sed '$a export PATH=$PATH:~/.local/bin' -i ~/.bashrc


# 地图
# [folium](https://zhuanlan.zhihu.com/p/392687123)
